//
//  ViewController.m
//  FFmpegDemo
//
//  Created by 于鹏 on 2017/5/23.
//  Copyright © 2017年 于鹏. All rights reserved.
//

#import "ViewController.h"
#import "YPFFmpegObject.h"
@interface ViewController ()
@property (nonatomic, strong) YPFFmpegObject *video;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSString *videoPath = [[NSBundle mainBundle]pathForResource:@"login_video" ofType:@"mp4"];
    self.video = [[YPFFmpegObject alloc] initWithVideo:videoPath];
    NSLog(@"视频总时长>>>video duration: %f",_video.duration);
    NSLog(@"源尺寸>>>video size: %d x %d", _video.sourceWidth, _video.sourceHeight);
    NSLog(@"输出尺寸>>>video size: %d x %d", _video.outputWidth, _video.outputHeight);

}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
